﻿using System.Collections.Generic;
using ProtoBuf;

namespace Ha666.DataBase
{
    [ProtoContract]
    public class TaoBaoTrade
    {
        [ProtoMember(1)]
        public TradeFullinfoGetResponse trade_fullinfo_get_response { get; set; }
    }

    [ProtoContract]
    public class Order
    {
        [ProtoMember(1)]
        public string adjust_fee { get; set; }
        [ProtoMember(2)]
        public bool buyer_rate { get; set; }
        [ProtoMember(3)]
        public int cid { get; set; }
        [ProtoMember(4)]
        public string discount_fee { get; set; }
        [ProtoMember(5)]
        public string end_time { get; set; }
        [ProtoMember(6)]
        public bool is_daixiao { get; set; }
        [ProtoMember(7)]
        public bool is_oversold { get; set; }
        [ProtoMember(8)]
        public int num { get; set; }
        [ProtoMember(9)]
        public long num_iid { get; set; }
        [ProtoMember(10)]
        public long oid { get; set; }
        [ProtoMember(11)]
        public string order_from { get; set; }
        [ProtoMember(12)]
        public string payment { get; set; }
        [ProtoMember(13)]
        public string pic_path { get; set; }
        [ProtoMember(14)]
        public string price { get; set; }
        [ProtoMember(15)]
        public string refund_status { get; set; }
        [ProtoMember(16)]
        public bool seller_rate { get; set; }
        [ProtoMember(17)]
        public string seller_type { get; set; }
        [ProtoMember(18)]
        public string sku_id { get; set; }
        [ProtoMember(19)]
        public string sku_properties_name { get; set; }
        [ProtoMember(20)]
        public string snapshot_url { get; set; }
        [ProtoMember(21)]
        public string status { get; set; }
        [ProtoMember(22)]
        public string title { get; set; }
        [ProtoMember(23)]
        public string total_fee { get; set; }
    }

    [ProtoContract]
    public class Orders
    {
        public List<Order> order { get; set; }
    }

    [ProtoContract]
    public class Trade
    {
        [ProtoMember(1)]
        public string adjust_fee { get; set; }
        [ProtoMember(2)]
        public long alipay_id { get; set; }
        [ProtoMember(3)]
        public string alipay_no { get; set; }
        [ProtoMember(4)]
        public string available_confirm_fee { get; set; }
        [ProtoMember(5)]
        public string buyer_alipay_no { get; set; }
        [ProtoMember(6)]
        public string buyer_area { get; set; }
        [ProtoMember(7)]
        public string buyer_cod_fee { get; set; }
        [ProtoMember(8)]
        public string buyer_email { get; set; }
        [ProtoMember(9)]
        public string buyer_nick { get; set; }
        [ProtoMember(10)]
        public int buyer_obtain_point_fee { get; set; }
        [ProtoMember(11)]
        public bool buyer_rate { get; set; }
        [ProtoMember(12)]
        public string cod_fee { get; set; }
        [ProtoMember(13)]
        public string cod_status { get; set; }
        [ProtoMember(14)]
        public string commission_fee { get; set; }
        [ProtoMember(15)]
        public string created { get; set; }
        [ProtoMember(16)]
        public string discount_fee { get; set; }
        [ProtoMember(17)]
        public string end_time { get; set; }
        [ProtoMember(18)]
        public string express_agency_fee { get; set; }
        [ProtoMember(19)]
        public bool has_post_fee { get; set; }
        [ProtoMember(20)]
        public bool is_3D { get; set; }
        [ProtoMember(21)]
        public bool is_brand_sale { get; set; }
        [ProtoMember(22)]
        public bool is_force_wlb { get; set; }
        [ProtoMember(23)]
        public bool is_lgtype { get; set; }
        [ProtoMember(24)]
        public bool is_part_consign { get; set; }
        [ProtoMember(25)]
        public string modified { get; set; }
        [ProtoMember(26)]
        public int num { get; set; }
        [ProtoMember(27)]
        public long num_iid { get; set; }
        [ProtoMember(28)]
        public Orders orders { get; set; }
        [ProtoMember(29)]
        public string payment { get; set; }
        [ProtoMember(30)]
        public string pic_path { get; set; }
        [ProtoMember(31)]
        public int point_fee { get; set; }
        [ProtoMember(32)]
        public string post_fee { get; set; }
        [ProtoMember(33)]
        public string price { get; set; }
        [ProtoMember(34)]
        public int real_point_fee { get; set; }
        [ProtoMember(35)]
        public string received_payment { get; set; }
        [ProtoMember(36)]
        public string receiver_address { get; set; }
        [ProtoMember(37)]
        public string receiver_city { get; set; }
        [ProtoMember(38)]
        public string receiver_district { get; set; }
        [ProtoMember(39)]
        public string receiver_mobile { get; set; }
        [ProtoMember(40)]
        public string receiver_name { get; set; }
        [ProtoMember(41)]
        public string receiver_state { get; set; }
        [ProtoMember(42)]
        public string receiver_zip { get; set; }
        [ProtoMember(43)]
        public string seller_alipay_no { get; set; }
        [ProtoMember(44)]
        public bool seller_can_rate { get; set; }
        [ProtoMember(45)]
        public string seller_cod_fee { get; set; }
        [ProtoMember(46)]
        public string seller_email { get; set; }
        [ProtoMember(47)]
        public int seller_flag { get; set; }
        [ProtoMember(48)]
        public string seller_mobile { get; set; }
        [ProtoMember(49)]
        public string seller_name { get; set; }
        [ProtoMember(50)]
        public string seller_nick { get; set; }
        [ProtoMember(51)]
        public string seller_phone { get; set; }
        [ProtoMember(52)]
        public bool seller_rate { get; set; }
        [ProtoMember(53)]
        public string shipping_type { get; set; }
        [ProtoMember(54)]
        public string snapshot_url { get; set; }
        [ProtoMember(55)]
        public string status { get; set; }
        [ProtoMember(56)]
        public long tid { get; set; }
        [ProtoMember(57)]
        public string title { get; set; }
        [ProtoMember(58)]
        public string total_fee { get; set; }
        [ProtoMember(59)]
        public string trade_from { get; set; }
        [ProtoMember(60)]
        public string type { get; set; }
    }

    [ProtoContract]
    public class TradeFullinfoGetResponse
    {
        [ProtoMember(1)]
        public Trade trade { get; set; }
    }
}
